package com.unitd.base.frame.plugins.module.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * 实体对象最顶层的基类
 *
 * @author hudan
 * @version 1.0
 * @filename BaseEntity.java
 * @copyright www.unitd.com
 * @date 2019-02-02
 */
@Data
@ToString
@EqualsAndHashCode
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BaseEntity implements Serializable, Cloneable {

	@Override
	public Object clone
			() throws CloneNotSupportedException {
		return super.clone();
	}
}